﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Actuals.CoreDomain.Business;
using Actuals.CoreDomain.Data;
using Actuals.CoreDomain;
using Actuals.Data;
using Actuals.Business;


namespace Actuals.Business
{
   public class BusinessUserStory : IBusinessUserStory
   {
       private IDalUserStory _dalUserStory;

       public BusinessUserStory(IDalUserStory dalUserStory)
       {
          _dalUserStory = dalUserStory;
       }
       public BusinessUserStory()
       {
           _dalUserStory = new DalUserStory();
       }

       #region  UserStory

       public IList<IUserStory> GetUserStories(int taskId)
       {
           return _dalUserStory.GetUserStories(taskId);
       }

       public IUserStory GetUserStory(int userStoryId)
       {
           return _dalUserStory.GetUserStory(userStoryId);
       }

       public IUserStory GetOldUserStory(int oldUserStoryId)
       {
           return _dalUserStory.GetOldUserStory(oldUserStoryId);
       }

       public bool AddUserStory(IUserStory userStory)
       {
           return _dalUserStory.AddUserStory(userStory);
       }
       public bool DeleteUserStory(int userStoryId)
       {
           return _dalUserStory.DeleteUserStory(userStoryId);
       }
       public int UpdateUserStory(IUserStory userStory)
       {
           return _dalUserStory.UpdateUserStory(userStory);
       }
       public IList <IUserStory> GetUserStoriesWithSprint(int sprint)
       {
           return _dalUserStory.GetUserStoriesWithSprint(sprint);
       }


     



#endregion



   }
}
